package com.zzl.bonds.ticket.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 开立或转让上传的资料
 *
 * @author sunpp
 * @date 2022-02-16 11:14:06
 */
@Data
@ApidocModel
@SuppressWarnings("javadoc")
public class TicketDataTransferAddDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApidocModelProperty(description = "基础合同编号", example = "")
    private String  dataNo;
    @ApidocModelProperty(description = "对应的票据id ", example = "")
    private String  ticketId;
    @ApidocModelProperty(description = "资料类型 1、贸易合同 2、发票", example = "")
    private String  dataType;
    @ApidocModelProperty(description = "对应的票据编号", example = "")
    private String  ticketNo;
    @ApidocModelProperty(description = "票据类型 1、开立 2、转让 3、融资 4、兑付", example = "")
    private Integer ticketActionType;
    @ApidocModelProperty(description = "对应的申请id", example = "")
    private String  applyId;
    @ApidocModelProperty(description = "文件名称", example = "")
    private String  fileName;
    @ApidocModelProperty(description = "资料/发票文件地址", example = "")
    private String dataAddress;
    @ApidocModelProperty(description = "发票代码")
    private String invoiceCode;
    @ApidocModelProperty(description = "发票号码")
    private String invoiceNo;
    @ApidocModelProperty(description = "发票类型 0 专票 1普票")
    private Integer invoiceType;
    @ApidocModelProperty(description = "价税合计")
    private Double amountIncludingTax;
    @ApidocModelProperty(description = "校验码后6位")
    private String lastSixDigitsCheckCode;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "开票日期", validate = "yyyy-MM-dd")
    private Date billingDate;
    @ApidocModelProperty(description = "所属票据类型的id")
    private String ticketActionId;
}
